Rsd.define('Rsd.zen.dialog.ChooseDialog', {
    extend: 'Rsd.zen.dialog.BizListDialog',
    requires: [],
    xtype: 'choose-dialog', 
    readonly: true,
    multiple:false,
    keyMember:'',
    textMember:'',
    newButtons:[], 
    title:'数据选择对话框',
    /**
     * 
     * @param {*} config 
     */
    constructor: function ChooseDialog(config) {
        config = config || {};
        this.apply(config);
        //console.log('ChooseDialog',config);
        //勾选列
        var check_col = this.chooseColumn||{
                xtype:'checkbox',
                text:Rsd.lang('form.text.selector.chooseColumnText'),
                width:60,
                fixed:true,
                multiple:this.multiple,
                align:'center',
                keyMember:this.keyMember,
                dataIndex:'_sel_' + this.keyMember,
                editable:true, 
        };
        
        var text_col = {
            xtype:'text',
            text:'描 述',  
            align:'left',
            dataIndex:this.textMember,
            editable:false, 
        }
        //
        var _cols = this.gridColumns||[text_col];
        this.gridColumns = Rsd.arrayConcat([check_col],_cols);
        this.searchColumns = [{text:'筛选条件',dataIndex:_cols.map(function(col){return col.dataIndex;})}];
         
        //console.log('choose list',this.where);
    },
    
},function (type) {

});